package org.harsh.transmission.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息接收对象 trans_recvmsg
 * 
 * @author liuhaibo
 * @date 2024-08-25
 */
public class TransRecvmsg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 接收到消息ID */
    private Long recvMsgId;

    /** 消息ID */
    @Excel(name = "消息ID")
    private Long msgId;

    /** 消息传输类型 */
    @Excel(name = "消息传输类型")
    private Long transType;

    /** 消息接收状态 */
    @Excel(name = "消息接收状态")
    private Long recvStatus;

    /** 消息接收长度 */
    @Excel(name = "消息接收长度")
    private Long recvSize;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date overTime;

    public void setRecvMsgId(Long recvMsgId) 
    {
        this.recvMsgId = recvMsgId;
    }

    public Long getRecvMsgId() 
    {
        return recvMsgId;
    }

    public void setMsgId(Long msgId) 
    {
        this.msgId = msgId;
    }

    public Long getMsgId() 
    {
        return msgId;
    }

    public void setTransType(Long transType) 
    {
        this.transType = transType;
    }

    public Long getTransType() 
    {
        return transType;
    }

    public void setRecvStatus(Long recvStatus) 
    {
        this.recvStatus = recvStatus;
    }

    public Long getRecvStatus() 
    {
        return recvStatus;
    }

    public void setRecvSize(Long recvSize) 
    {
        this.recvSize = recvSize;
    }

    public Long getRecvSize() 
    {
        return recvSize;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setOverTime(Date overTime) 
    {
        this.overTime = overTime;
    }

    public Date getOverTime() 
    {
        return overTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recvMsgId", getRecvMsgId())
            .append("msgId", getMsgId())
            .append("transType", getTransType())
            .append("recvStatus", getRecvStatus())
            .append("recvSize", getRecvSize())
            .append("startTime", getStartTime())
            .append("overTime", getOverTime())
            .toString();
    }
}
